package com.xjtu.conan.service;

import com.xjtu.conan.entity.ArticleInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.conan.entity.NewsInfo;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 话题表 服务类
 * </p>
 *
 * @author 一只黑猩猩
 * @since 2021-04-19
 */
public interface ArticleInfoService extends IService<ArticleInfo> {
    public List<ArticleInfo> getAllArticleInfo(int current, int size);

    public ArticleInfo getArticleBynId(Long aid);

    public Long addArticleInfo(ArticleInfo articleInfo) throws IOException;

    public Long updateArticleInfo(ArticleInfo articleInfo);

    public int deleteArticleInfo(Long aid);

    public int getTotal();
}
